package com.doform.android.xianggucheng.bean.request_bean;

import com.doform.android.xianggucheng.help.AppHelp;
import com.google.gson.Gson;

/**
 * 作者 Y_MS
 * Created by ${APEN} on 2017-08-04.
 * GitHub：https://github.com/cxydxpx
 */

public class ReqUpdateShopCar {

    /**
     * _savetype 	是 	string 	操作类型：新增：add ； 编辑：update
     * guid 	否 	string 	GUID
     * matid 	是 	string 	商品ID
     * price 	是 	string 	价格
     * num 	是 	string 	数量
     * remarktxt 	否 	string 	备注
     * debug 	是 	string 	开启：true
     */
    private String _savetype = "update";
    private boolean debug = AppHelp.getInstance().Debug;

    private String matid;
    private String guid;
    private String num;
    private String price;

    public ReqUpdateShopCar(String id, String guid, String num, String price) {
        this.matid = id;
        this.guid = guid;

        if (!"".equals(num)) {
            this.num = num;
        }
        if (!"".equals(price)) {
            this.price = price;
        }


    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
